//@author A0078695H
#pragma once
#include "command.h"

enum UdtType {
	SELECT, EDIT
};

class CmdUpdate :
	public Cmd
{
public:
	static const string UPDATE_PROMPT;
	CmdUpdate(cmdTypes cmdType, vector<string> params, string origStr, int id);
	CmdUpdate(cmdTypes cmdType, vector<string> params, string origStr, int id, Task task);

	~CmdUpdate(void);
	int getId();
	void setId(int id);
	UdtType getUdtType();
	Task getModifiedTask();

private:
	UdtType udtType;
	int id;
	Task modifiedTask;
};

